package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 答案表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-09
 */
@TableName("wz_answer")
public class WzAnswer extends Model<WzAnswer> {

    private static final long serialVersionUID = 1L;

    /**
     * 问题id
     */
    @TableId(value = "answer_id", type = IdType.AUTO)
    private Long answerId;
    /**
     * 问题id
     */
    @TableField("question_id")
    private Long questionId;
    /**
     * 答案
     */
    private String answer;
    /**
     * 是否正确答案：0-不是；1-是
     */
    @TableField("is_true")
    private Integer isTrue;
    /**
     * 答案图片链接
     */
    @TableField("answer_pic")
    private String answerPic;


    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getIsTrue() {
        return isTrue;
    }

    public void setIsTrue(Integer isTrue) {
        this.isTrue = isTrue;
    }

    public String getAnswerPic() {
        return answerPic;
    }

    public void setAnswerPic(String answerPic) {
        this.answerPic = answerPic;
    }

    @Override
    protected Serializable pkVal() {
        return this.answerId;
    }

    @Override
    public String toString() {
        return "WzAnswer{" +
        "answerId=" + answerId +
        ", questionId=" + questionId +
        ", answer=" + answer +
        ", isTrue=" + isTrue +
        ", answerPic=" + answerPic +
        "}";
    }
}
